aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testin...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-25 19:57:49 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-25 19:57:49 +0100
commit26e73674db626d51f9eb57349f219907f524b178 (patch)
tree290782c830860033738ec22430f6068706b65418 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parentf1a64f8ac893d69e80c04b55f37f12ce36a7d71e (diff)
Add WASM code gen for push-string instruction
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected32
1 files changed, 32 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..92bf46c7
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,32 @@
+
+module.wasm: file format wasm 0x1
+
+Section Details:
+
+Type[1]:
+ - type[0] () -> nil
+Function[1]:
+ - func[0] sig=0 <f>
+Memory[1]:
+ - memory[0] pages: initial=9
+Code[1]:
+ - func[0] size=4 <f>
+Data[1]:
+ - segment[0] <.data> memory=0 size=9 - init i32=0
+ - 0000000: 0000 0005 6865 6c6c 6f ....hello
+Custom:
+ - name: "name"
+ - func[0] <f>
+Custom:
+ - name: "linking"
+ - segment info [count=1]
+ - 0: .data p2align=2 [ ]
+ - symbol table [count=2]
+ - 0: F <f> func=0 [ binding=global vis=default ]
+ - 1: D <string__0> segment=0 offset=0 size=9 [ binding=global vis=default ]
+
+Code Disassembly:
+
+00002f func[0] <f>:
+ 000030: 41 00 | i32.const 0
+ 000032: 0b | end \ No newline at end of file